import {http} from '@/libs/httpRequest';

// 表格数据
export function getList (params) {
    return http({
        url: '/admin/dept/list',
        method: 'get',
        params: params
    })
}

// 保存部门
export function save (data) {
    return http({
        url: '/admin/dept/save',
        method: 'post',
        data: data
    })
}

// 修改部门
export function update (data) {
    return http({
        url: '/admin/dept/update',
        method: 'post',
        data: data
    })
}

//删除部门
export function remove(data){
    return http({
        url:'/admin/dept/delete',
        method:'delete',
        data:data
    })
}


//获取部门树
export function treeData(data){
  return http({
    url:'/admin/dept/treeData',
    method:'get',
    data:data
  })
}
